<html><head>

        <link href="<?php echo base_url('assets/css/formkematian.css') ?>" rel="stylesheet" type="text/css">
        <title>Laporan Kematian Penduduk</title>
    </head>
    <body>
        <form action="<?php echo base_url('kematian/tampil'); ?>" method="post">
        <table width="100%" border="0" align="center">
            <tr>
                <td colspan="13" class="trheader">Laporan Kematian  Penduduk</td>
            </tr>
            <tr>
                <td colspan="13" class="jeda">&nbsp;</td>
            </tr>
            <tr>
                <td width="4%"><div align="center"><strong>No.</strong></div></td>
              <td width="9%"><div align="center"><strong>No. Surat</strong></div></td>
              <td width="10%"><div align="center"><strong>NIK</strong></div></td>
              <td width="9%"><div align="center"><strong>Nama</strong></div></td>
              <td width="7%"><div align="center"><strong>Jenis Kelamin</strong></div></td>
              <td width="9%"><div align="center"><strong>No.KK</strong></div></td>
              <td width="8%"><div align="center"><strong>Alamat</strong></div></td>
              <td width="12%"><div align="center"><strong>Tgl. Kematian</strong></div></td>
              <td width="9%"><div align="center"><strong>Sebab</strong></div></td>
              <td width="10%"><div align="center"><strong>Nama Pelapor</strong></div></td>
              <td width="13%"><div align="center"><strong>Atur<br>Ubah - Hapus</strong></div></td>
          </tr>
            <?php
//            echo '<tr>';
//            echo '<td>tampil</td>';
//            echo '</tr>';
            if (isset($kematian)) {
                $no = 1;
                foreach ($kematian->result() as $data_kematian) {
                    echo '<tr>';
                    echo '<td><div align="center">' . $no++ . '</div></td>';
                    echo '<td><div align="center">' . $data_kematian->no_form . '</div></td>';
                    echo '<td>' . $data_kematian->nik_mati . '</td>';
                    echo '<td>' . $data_kematian->nama_mati . '</td>';
                    echo '<td><div align="center">' . $data_kematian->jenis_kelamin . '</div></td>';
                    echo '<td>' . $data_kematian->no_kk . '</td>';
                    echo '<td>' . $data_kematian->dusun . '</td>';
                    echo '<td>' . $this->tanggal->tanggal_indonesia($data_kematian->tgl_mati) . '</td>';
                    echo '<td>' . $data_kematian->sebab . '</td>';
                    echo '<td>' . $data_kematian->nama_pelapor . '</td>';
                    echo '<td><div align="center"><a href="' . base_url('kematian/ubah/' . $data_kematian->idkematian) . '"><img src="' . base_url('assets/images/ubah.png') . '"></a>  -  <a href="' . base_url('kematian/hapus/' . $data_kematian->idkematian) . '"><img src="' . base_url('assets/images/hapus.png') . '"></a></div></td>';
                    echo '</tr>';
                }
            }
            ?>
        </table>
        <br>
        <table width="419" border="0" align="center">
            <tr>
                <td colspan="2" class="jeda"><strong>Data Tercatat</strong></td>
            </tr>
            <tr>
                <td width="177">Jumlah Data Kematian</td>
                <td width="232">: <?php echo $kematian->num_rows(); ?> jiwa</td>
            </tr>
        </form>
    </body>
</html>
